<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>专利列表</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
    <link rel="stylesheet" href="../../css/vip.css" type="text/css">
    <SCRIPT language=JavaScript src="../../js/jquery.js"></SCRIPT>
  <SCRIPT language=JavaScript src="../../js/FoshanRen.js"></SCRIPT>
  <link rel="stylesheet" type="text/css" href="../../js/extjs/resources/css/ext-all.css"/>
<script type="text/javascript" charset="utf-8" src="../../js/extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" charset="utf-8" src="../../js/extjs/ext-all.js"></script>
  <script language="JavaScript">
	function topage(page){
	var s="<s:url action='patent_query' namespace='/admin/patent'/>?patentQuery.patentName=<s:property value='patentQuery.patentName'/>"
	+"&patentQuery.acceptNo=<s:property value='patentQuery.acceptNo'/>"
	+"&patentQuery.patentNo=<s:property value='patentQuery.patentNo'/>"
	+"&patentQuery.patentee=<s:property value='patentQuery.patentee'/>"
	+"&patentQuery.state=<s:property value='patentQuery.state'/>"
	+"&page="+page;
	javascript:window.location.href=s;
	}
	function deleteItem(id){
	 if(confirm("你确定要删除")){
	    $.get("patentManage_delete.action?patent.id="+id,
	    function(data){
	    $("#"+id).remove();
	    alert(data);
	    });
      }
    }
  </script>

  </head>
  
  <body>
  <s:form action="patent_query" namespace="/admin/patent" method="post">

 <table width="98%" border="0" cellspacing="1" cellpadding="3" align="center">
    <tr bgcolor="6f8ac4"> 
       <td colspan="6" ><font color="#FFFFFF">条件查询（请选择其中的一个或多个条件进行查询）：</font></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">专利名称  ：</div></td>
      <td colspan="3"><s:textfield name="patentQuery.patentName" size="84" maxlength="40"/></td>
      <td> <div align="right">专利人 ：</div></td>
      <td><s:textfield name="patentQuery.patentee" size="20" maxlength="20"/></td>
    </tr>
     <tr bgcolor="f5f5f5"> 
      <td> <div align="right">受理号：</div></td>
      <td><s:textfield name="patentQuery.acceptNo" size="20" maxlength="40"/></td>   
    
      <td> <div align="right">专利号 ：</div></td>
      <td><s:textfield name="patentQuery.patentNo" size="20" maxlength="20"/></td>
        
      <td> <div align="right">专利状态  ：</div></td>
      <td> 
      <s:select name="patentQuery.state" list="#{'已申请':'已申请','已受理':'已受理','初审合格':'初审合格','实审合格及公布':'实审合格及公布','已授权':'已授权'}" headerValue="---请选择项目状态---" headerKey="">
      </s:select>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td colspan="6"> <div align="center"> 
          <input type="submit" name="edit" value=" 确 认 " class="frm_btn">
          &nbsp;&nbsp;<input type="button" name="Button" value=" 返 回 " class="frm_btn" onclick="javascript:history.back()">
        </div></td>
    </tr>
  </table>
</s:form>
<br>

  <table width="98%" border="0" cellspacing="1" cellpadding="2" align="center">
    <tr ><td colspan="10"  bgcolor="6f8ac4" align="right">
    	<%@ include file="/WEB-INF/page/shared/fenye.jsp" %>
   </td></tr>
    <tr>
      <td width="15%" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">专利名称</font></div></td>
      <td width="10%" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">受理号</font></div></td>
	  <td width="10%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">专利号</font></div></td>
	  <td width="7%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">专利人</font></div></td>
	  <td width="10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">申请日期</font></div></td>	  
      <td width="10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">公布及实审日期</font></div></td>
      <td width="10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">专利状态</font></div></td>
       <td width="10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">详细信息查询</font></div></td>
      <td width="5%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">修改</font></div></td>
      <td width="5%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">删除</font></div></td>
    </tr>
    <s:iterator value="#pageView.records">
    <tr id="<s:property value='id'/>">
      <td bgcolor="f5f5f5"> <div align="center"><s:property value="patentName"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="acceptNo"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="patentNo"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="patentee"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:date name="applyDate" nice="false" format="yyyy-MM-dd"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:date name="publicDate" nice="false" format="yyyy-MM-dd"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="state"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><a href='<s:url action="patentManage_detailQuery" namespace="/admin/patent"><s:param name="patent.id" value="%{id}"></s:param></s:url>'>专利详细信息</a></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><a href='<s:url action="patentManage_edit" namespace="/admin/patent"><s:param name="patent.id" value="%{id}"></s:param></s:url>'>
	  <img src="../../images/edit.gif" width="15" height="16" border="0"></a></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><input type="button" class="frm_btn" value="删除" onClick="deleteItem(<s:property value='id'/>)"/></div></td> 
	</tr>
    </s:iterator>     
  </table>
 
  </body>
</html>
